import * as React from "react";
interface IStyle {
  [key: string]: any
}

interface IMyProps {
  width?: number
  height?: number
  mode?: string // contain,cover
  url?: string
  content?: string
  style?: IStyle
}

interface IMyState {
  count:number
  
}
class MyWebGl extends React.Component<IMyProps,IMyState> {
  constructor(props) {
    super(props);
    this.state = {
      count: 0,
    };
  }
  render() {
    return (
      <div>
        <canvas
          id="myCanvas"
          width="200"
          height="100"
          // style="border:1px solid black;"
        ></canvas>
      </div>
    );
  }
}
export default MyWebGl;
